<template>
  <div>
    <div class="hotGoodsList">
      <h3>人气推荐</h3>
      <ul>
        <li v-for="item in hotGoodsList" :key="item.id">
          <img :src="item.list_pic_url" alt="" />
          <div>
            <h4>{{ item.name }}</h4>
            <p>{{ item.goods_brief }}</p>
            <p class="hotGoods-price">￥ {{ item.retail_price }} 元</p>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  props: ["hotGoodsList"],
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
.hotGoodsList {
  width: 100%;
  background: #fff;
  // padding-bottom: 0.2rem;
  text-align: center;
  margin-top: 0.2rem;
  h3 {
    font-size: 20px;
    line-height: 50px;
  }
  ul {
    li {
      background-color: #fafafa;
      margin-bottom: 0.15rem;
      height: 1.04rem;
      // line-height: 1.04rem;
      img {
        display: block;
        width: 0.88rem;
        height: 0.88rem;
        line-height: 1.04rem;
        float: left;
        margin: 0.1rem;
      }
      div {
        float: left;
        // background-color: pink;
        line-height: 1.04rem;
        margin: 0 0.1em;
        text-align: left;
        h4 {
          font-size: 18px;
          line-height: 0.4rem;
        }
        p {
          font-size: 12px;
          line-height: 0.3rem;
        }
        .hotGoods-price {
          color: #8b0000;
        }
      }
    }
  }
}
</style>